'use strict';

const loginRule = {
  username: {
    type: 'string',
    required: true,
    min: 1
  },
  password: {
    type: 'string',
    required: true,
    min: 1
  },
};

const passwordRule = {
  password: {
    type: 'string',
    required: true,
    min: 1
  },
  confirm_password: {
    type: 'string',
    required: true,
    min: 1
  },
}

const createRule = {
  username: {
    type: 'string',
    required: true,
    min: 1
  },
  nickname: {
    type: 'string',
    required: true,
    min: 1
  },
  password: {
    type: 'string',
    required: true,
    min: 1
  },
  confirm_password: {
    type: 'string',
    required: true,
    min: 1
  },
}

const editRule = {
  nickname: {
    type: 'string',
    required: true,
    min: 1
  },
  password: {
    type: 'string',
    required: true,
    min: 1
  },
  confirm_password: {
    type: 'string',
    required: true,
    min: 1
  },
}

module.exports = {
  loginRule,
  passwordRule,
  createRule,
  editRule,
};
